Display man pages in PDF in a simple way
La traduction de cette page n'est pas terminée.
In the file /sur/bin/manpdf enter the lines
#!/bin/sh
file=$1
location=`man -w $file`
man -l -Tps $location | ps2pdf -> /tmp/$file.pdf
evince /tmp/$file.pdf
After type chmod +x /usr/bin/manpdf
to display man page of ls for example
# manpdf ls
Notes :
- you can change evince for an other PDF viewer
- you can add more option to evince for example to find text in PDF file ( -l )
- you can also ask a page number with other evince option ( manpdf evince)